package me.numark.providers;

import android.net.Uri;
import android.provider.BaseColumns;

/**
 * Created by tian on 14-9-24:上午11:41.
 */
public class Numa {

    public static final String AUTHORITY = "me.numark";

    public static class NewsColumns implements BaseColumns {

        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/news");

        public static final String HOT_NEWS_TABLE_NAME = "hot_news";

        public static final String FROM_STR = "from_str";

        public static final String NEWS_ID = "news_id";

        public static final String TITLE = "title";

        public static final String SUBTITLE = "subtitle";

        public static final String CREATE = "create_at";

        public static final String FROM_TO = "from_to";

        public static final String FACE_IMAGE = "face_img";

        public static final String CREATE_TIMESTAMP = "create_timestamp";

        public static final String TYPE = "type";

        public static final String HOT = "hot";

        public static final String JSON = "json";

        public static final String CHANNEL = "channel";

        public static final String DAY = "day";
    }

    public static class FeedColumns implements BaseColumns {

        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/feeds");

        public static final String TABLE_NAME = "feeds";

        public static final String CONTENT = "content";

        public static final String FEED_ID = "feed_id";

        public static final String FEED_TIME = "feed_time";

        public static final String FEED_TYPE = "feed_type";

        public static final String CREATE_AT = "create_at";

    }

    public static class DialogColumns implements BaseColumns {

        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/dialogs");

        public static final String TABLE_NAME = "nm_dialogs";
    }

    public static class KeyValueColumns implements BaseColumns {

        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/kvs");

        public static final String TABLE_NAME = "nm_kvs";
    }

    public static class MessageColumns implements BaseColumns {

        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/messages");

        public static final String TABLE_NAME = "nm_messages";
    }

    public static class UserColumns implements BaseColumns {

        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/users");

        public static final String TABLE_NAME = "nm_users";

        public static final String USER_ID = "_id";

        public static final String USER_NICK = "nick";

        public static final String USER_DES = "des";

        public static final String USER_FANS = "fans";

        public static final String USER_FOLLOWS = "follows";

        public static final String USER_IS_FOLLOW = "my_follows"; // I follow the user

        public static final String USER_IS_FAN = "my_fans"; //The user follow me

        public static final String USER_PINYIN = "pinyin";

        public static final String USER_PIC = "pic";
    }

}
